<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>
<%@include file="../common/jscss.jsp"%>
<%@include file="../common/selfCss.jsp"%>
<html>
<head>
<script type="text/JavaScript">
	//初始化富文本
		$(function() {
		editor = $(".desc")
				.xheditor(
					{
						tools : 'Removeformat,Fontface,FontSize,Bold,Italic,Underline,Strikethrough,FontColor,BackColor,Align,Link',
						skin : 'default',
						showBlocktag : false,//段落标签
						internalScript : false,
						internalStyle : false,
						width : 500,
						height : 350,
						fullscreen : false,
						forcePtag : true,
						cleanPaste : 1,
						upMultiple : 1,
						html5Upload : false
					});

		});




function sendEmail(){
	
	$("#sendEmail").attr({"disabled":"disabled"});
	$.post("/misc/reminder/sendEmail.htm", {
		description : $("#description").val(),
		type:$("#type").val()
	}, function(data) {
		if (data == "success") {
			alert("发送成功！");
		}
		if (data == "error") {
			$.ligerDialog.warn("系统有点抽经，请稍候重试！");
		}
	});
}
</script>
</head>
<body>
		<br/>
		<div style="text-align: center;">
			<font size="3">
			<b> 
			<c:if test="${type eq 'made' }">定制
			</c:if>
			<c:if test="${type eq 'auction' }">拍卖
			</c:if> 邮件发送 </b> </font>
			<FONT SIZE="" COLOR="red">*</FONT>&nbsp; <font size="2">为必填项</font></div>	<br/>	<br/>
			
	<table border="0" align="center" cellpadding="0" cellspacing="0" class="borderquan">
		
		<tr>
			<td  height="30" align="center" class="borderbottomright"><FONT SIZE="" COLOR="red">*</FONT>&nbsp;邮件内容描述
				<input  type="hidden" value="${type }" id="type"/>
			</td>
			<td  class="borderbottom">
				<label> 
					<textarea id="description" class='desc' name="description" cols="200" style="width: 350px"></textarea>
				</label>
			</td>
		</tr>
		<tr>
			<td height="30" colspan="2" align="center"><input type="button" name="save" class="myBtn" value="发     送" onclick="sendEmail()" id="sendEmail"/></td>
		</tr>
	</table>
</body>
</html>